//
//  Yijianfankui.m
//  WeiDuYY
//
//  Created by 张继良 on 2019/1/25.
//  Copyright © 2019 W ke杨. All rights reserved.
//

#import "Yijianfankui.h"
#import <SDAutoLayout.h>
#import "MeViewController.h"
#import "Tijiao.h"


@interface Yijianfankui ()

@end

@implementation Yijianfankui

- (void)viewDidLoad {
    [super viewDidLoad];
    //主界面颜色
    self.view.backgroundColor = [UIColor whiteColor];
    //方法
    [self setNav];
    [self setNab];
}
-(void)setNab{
    //文字
    UILabel * lb1 = [[UILabel alloc]init];
    //添加
    [self.view addSubview:lb1];
    lb1.sd_layout.leftSpaceToView(self.view, 30).topSpaceToView(self.view, 40).widthIs(120).heightIs(40);
    lb1.text = @"意见反馈";
    //文本框
    UITextField * field = [[UITextField alloc]init];
    //添加
    [self.view addSubview:field];
    field.sd_layout.leftSpaceToView(self.view, 30).topSpaceToView(self.view, 100).widthIs(350).heightIs(100);
    field.text = @"写下您对产品的感受吧!工作人员会在第一时间处理";
    field.textColor = [UIColor lightGrayColor];
    field.layer.borderWidth = 2.0f;
    field.layer.cornerRadius = 5;
    field.layer.borderColor = [UIColor lightGrayColor].CGColor;
    //按钮
    //按钮
    UIButton *btn2 = [[UIButton alloc] init];
    //添加
    [self.view addSubview:btn2];
    btn2.sd_layout.leftSpaceToView(self.view, 300).topSpaceToView(self.view, 230).widthIs(80).heightIs(40);
    [btn2 setImage:[UIImage imageNamed:@"anniutupian"] forState:UIControlStateNormal];
    [btn2 addTarget:self action:@selector(BtnA) forControlEvents:UIControlEventTouchUpInside];
    
}
-(void)setNav{
    //按钮
    UIButton *btn1 = [[UIButton alloc] init];
    //添加
    [self.view addSubview:btn1];
    btn1.sd_layout.leftSpaceToView(self.view, 20).topSpaceToView(self.view, 650).widthIs(60).heightIs(60);
    [btn1 setImage:[UIImage imageNamed:@"com_icon_my_default_hdpi"] forState:UIControlStateNormal];
    [btn1 addTarget:self action:@selector(Btnfour) forControlEvents:UIControlEventTouchUpInside];
    
}
-(void)Btnfour{
    MeViewController * M = [[MeViewController alloc]init];
    [self.navigationController popViewControllerAnimated:YES];
}
-(void)BtnA{
    Tijiao * tijiao = [Tijiao new];
    tijiao.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:tijiao animated:YES];
}
@end
